/*
 * @Author: luojianfeng
 * @Date: 2022-12-09 10:26:13
 * @LastEditTime: 2023-01-03 17:35:01
 * @LastEditors: luojianfeng
 * @Description:
 */
import * as monaco from 'monaco-editor'

export const defineMonacoTheme = () => {
  monaco.editor.defineTheme('GreyTheme', {
    base: 'vs',
    inherit: true,
    rules: [{ background: '#F9F9F9' }],
    colors: {
      // 相关颜色属性配置
      'editor.foreground': '#000000',
      'editor.background': '#F5F8FC',
      'editorCursor.foreground': '#8B0000',
      'editor.lineHighlightBackground': '#0000FF20',
      'editorLineNumber.foreground': '#B3B9C3',
      'editor.selectionBackground': '#88000030',
      'editor.inactiveSelectionBackground': '#88000015'
    }
  })
}
